package huanzhao.erp.domain.enumerate.error;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author April
 * 2024/9/22 12:08
 * @version 1.0
 */
@Getter
@AllArgsConstructor
public enum TaskError implements BaseErrorCode {
    TASK_ERROR(500, "任务异常"),
    TASK_NOT_FOUND(501, "任务不存在"),
    TASK_STATUS_ERROR(502, "任务状态异常"),
    TASK_FINISHED(503, "任务已结束"),
    TASK_NOT_OWN(504, "任务不属于自己"),
    TASK_DEADLINE_ILLEGAL(505, "任务时限不合法");


    private final int code;
    private final String message;
}
